import { axios } from '@/utils/request'

/**
 * 大转盘
 */

export function selectPage (parameter) {
  return axios({
    url: '/mini/game/list',
    method: 'get',
    params: parameter
  })
}

export function saveOrUpdate (parameter) {
  return axios({
    url: '/mini/game/saveOrUpdate',
    method: 'post',
    data: parameter
  })
}

export function del (id) {
  return axios({
    url: '/mini/game/' + id,
    method: 'delete'
  })
}

export function codestatusBtn (parameter) {
  return axios({
    url: '/mini/game/codeStatus/' + parameter,
    method: 'put'
  })
}

export function statusBtn (parameter) {
  return axios({
    url: '/mini/game/status/' + parameter,
    method: 'put'
  })
}